#include "square.h"

// see square.h
Square::Square(int length) {
    this->l = length;
}

// see square.h
void Square::area(void) {
    double area = pow((double)this->l, 2);
    cout << "\nArea of a square is (" << this->l << ")^2 = " << int(area);
}

// see square.h
void Square::perimeter(void) {
    int perimeter = 4 * this->l;
    cout << "\nPerimeter of a square is 4 * " << this->l << " = " << perimeter;
}

// see square.h
void Square::volume(void) {
    cout << "\nVolume is not defined for a square.";
}